<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>约拍平台 - 注册</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8f8f8;
            margin: 0;
            padding: 0;
            color: #333;
        }
        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: white;
            margin-bottom: 16px;
        }
        .form-input:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .register-btn {
            width: 100%;
            padding: 12px;
            background-color: #3b82f6;
            color: white;
            border-radius: 8px;
            font-weight: 500;
            text-align: center;
        }
        .register-btn:disabled {
            background-color: #93c5fd;
        }
        .tab-active {
            color: #3b82f6;
            border-bottom: 2px solid #3b82f6;
        }
        .role-card {
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .role-card.active {
            border-color: #3b82f6;
            background-color: #eff6ff;
        }
        .role-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background-color: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 12px;
        }
        .role-card.active .role-icon {
            background-color: #dbeafe;
        }
    </style>
</head>
<body>
    <!-- 状态栏将通过JS加载 -->
    
    <div class="pt-7 pb-20">
        <!-- 顶部标签栏 -->
        <div class="bg-white px-4 py-3 flex items-center justify-between sticky top-0 z-10 shadow-sm">
            <a href="#" class="text-gray-800" onclick="history.back(); return false;">
                <i class="fas fa-arrow-left"></i>
            </a>
            <div class="flex-1 flex justify-center">
                <div class="flex">
                    <div class="px-6 py-2 text-gray-500">登录</div>
                    <div class="px-6 py-2 tab-active">注册</div>
                </div>
            </div>
            <div class="w-5"></div>
        </div>
        
        <!-- 注册表单 -->
        <div class="p-6">
            <div class="mb-8">
                <h1 class="text-2xl font-bold mb-2">创建账号</h1>
                <p class="text-gray-500">加入约拍平台，开启你的约拍之旅</p>
            </div>
            
            <!-- 步骤指示器 -->
            <div class="flex items-center justify-between mb-8">
                <div class="flex items-center">
                    <div class="w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center">1</div>
                    <div class="ml-2">
                        <div class="text-sm font-medium">选择角色</div>
                        <div class="text-xs text-gray-500">选择你的身份</div>
                    </div>
                </div>
                <div class="h-px bg-gray-200 flex-1 mx-4"></div>
                <div class="flex items-center">
                    <div class="w-8 h-8 rounded-full bg-gray-200 text-gray-500 flex items-center justify-center">2</div>
                    <div class="ml-2">
                        <div class="text-sm font-medium text-gray-500">填写信息</div>
                        <div class="text-xs text-gray-500">完善个人资料</div>
                    </div>
                </div>
            </div>
            
            <!-- 角色选择 -->
            <div class="mb-8">
                <h2 class="text-lg font-medium mb-4">请选择你的身份</h2>
                <div class="grid grid-cols-2 gap-4">
                    <div class="role-card active" id="photographer-role">
                        <div class="role-icon">
                            <i class="fas fa-camera text-blue-500 text-2xl"></i>
                        </div>
                        <div class="font-medium">摄影师</div>
                        <div class="text-xs text-gray-500 mt-1">我是摄影师，提供约拍服务</div>
                    </div>
                    <div class="role-card" id="model-role">
                        <div class="role-icon">
                            <i class="fas fa-user text-gray-400 text-2xl"></i>
                        </div>
                        <div class="font-medium">模特</div>
                        <div class="text-xs text-gray-500 mt-1">我是模特，寻找约拍机会</div>
                    </div>
                </div>
            </div>
            
            <!-- 基本信息 -->
            <div class="mb-6">
                <div class="relative">
                    <input type="tel" class="form-input pl-12" placeholder="请输入手机号码">
                    <div class="absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400">
                        <span>+86</span>
                    </div>
                </div>
                
                <div class="relative">
                    <input type="text" class="form-input" placeholder="请输入验证码">
                    <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-blue-500 text-sm">
                        获取验证码
                    </button>
                </div>
                
                <div class="relative">
                    <input type="password" class="form-input" placeholder="设置密码（6-20位字母、数字或符号）">
                </div>
                
                <div class="relative">
                    <input type="text" class="form-input" placeholder="设置昵称">
                </div>
            </div>
            
            <div class="flex items-center mb-6">
                <input type="checkbox" id="agreement" class="mr-2">
                <label for="agreement" class="text-xs text-gray-500">
                    我已阅读并同意
                    <a href="#" class="text-blue-500">《用户协议》</a>和
                    <a href="#" class="text-blue-500">《隐私政策》</a>
                </label>
            </div>
            
            <button class="register-btn">下一步</button>
        </div>
    </div>
    
    <script>
        // 加载状态栏
        document.addEventListener('DOMContentLoaded', function() {
            // 创建iOS状态栏
            const statusBar = document.createElement('div');
            statusBar.className = 'bg-black text-white h-7 flex items-center justify-between px-4 text-xs fixed top-0 left-0 right-0 z-50';
            statusBar.innerHTML = `
                <div>
                    <span>9:41</span>
                </div>
                <div class="flex space-x-1">
                    <i class="fas fa-signal"></i>
                    <i class="fas fa-wifi"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            `;
            document.body.prepend(statusBar);
            
            // 标签切换
            const tabs = document.querySelectorAll('.px-6.py-2');
            tabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    tabs.forEach(t => {
                        t.classList.remove('tab-active');
                        t.classList.add('text-gray-500');
                    });
                    this.classList.add('tab-active');
                    this.classList.remove('text-gray-500');
                    
                    // 如果点击登录，跳转到登录页面
                    if(this.textContent === '登录') {
                        window.location.href = 'login.html';
                    }
                });
            });
            
            // 角色选择
            const roleCards = document.querySelectorAll('.role-card');
            roleCards.forEach(card => {
                card.addEventListener('click', function() {
                    roleCards.forEach(c => {
                        c.classList.remove('active');
                        c.querySelector('.role-icon i').classList.remove('text-blue-500');
                        c.querySelector('.role-icon i').classList.add('text-gray-400');
                    });
                    this.classList.add('active');
                    this.querySelector('.role-icon i').classList.remove('text-gray-400');
                    this.querySelector('.role-icon i').classList.add('text-blue-500');
                });
            });
        });
    </script>
</body>
</html> 